import java.util.Scanner;


public class ApplyWallForce implements ApplyForce {
    
    private int wallID;
    private WallForce wall1;
    private WallForce wall2;
    private WallForce wall3;
    private WallForce wall4;
    
    public ApplyWallForce(){
        wall1=new WallForce();
        wall1.setWallID(1);
        
        wall2=new WallForce();
        wall1.setWallID(2);       
        wall3=new WallForce();
        wall1.setWallID(3);
        wall4=new WallForce();
        wall1.setWallID(4);
    }
    
  
    
   
    
    
    
    public  WallForce getWallForce (int i){
        
        switch (i){
            case 1:
                return wall1;
               
                
            case 2:
                return wall2;
               
                
            case 3:
                return wall3;
               
                
            case 4:
                return wall4;
                
        }
        return wall1;
            
    }
    
    public final void build(Scanner line, Simulation sim) {
        wallID=line.nextInt();
        WallForce wf=getWallForce(wallID);
        wf.setMagnitude(line.nextDouble());
        wf.setExponent(line.nextDouble());
        wf.setSimulation(sim);
        
    }

    @Override
    public Force getForce (Mass m) {
        // TODO Auto-generated method stub
        return new Force(0,0);
    }

    @Override
    public void turnOffForce () {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void turnOnForce () {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void toggle () {
        // TODO Auto-generated method stub
        
    }

}
